@echo off
echo 正在启动MinIO图片上传服务...
echo.

echo 1. 清理并编译项目...
call mvn clean package -DskipTests -q

if %errorlevel% neq 0 (
    echo 编译失败！
    pause
    exit /b 1
)

echo.
echo 2. 启动服务...
echo 服务将在 http://localhost:8081 启动
echo 健康检查: http://localhost:8081/upload/health
echo.

java -jar target/face-upload-service-1.0.0.jar

pause



